package com.example.testproj.design.decorator;

/**
 * @des:
 * @author: 芮勤
 * @date: 2019/6/14 15:06
 * @see {@link }
 */
abstract class Decorator extends Component {

    protected Component component;

    public void setComponent(Component component) {
        this.component = component;
    }

    @Override
    public void Operation() {
        if (component != null) {
            component.Operation();
        }
    }
}
